home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / Errors.p < prev    next >
Text File  |  1996-05-01  |  66KB  |  1,320 lines

  1. {
  2.      File:        Errors.p
  3.  
  4.      Contains:    OSErr codes.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT Errors;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __ERRORS__}
  28. {$SETC __ERRORS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ErrorsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __CONDITIONALMACROS__}
  35. {$I ConditionalMacros.p}
  36. {$ENDC}
  37.  
  38. {$PUSH}
  39. {$ALIGN MAC68K}
  40. {$LibExport+}
  41.  
  42.  
  43. CONST
  44.     paramErr                    = -50;                            { error in user parameter list }
  45.     noHardwareErr                = -200;                            { Sound Manager Error Returns }
  46.     notEnoughHardwareErr        = -201;                            { Sound Manager Error Returns }
  47.     userCanceledErr                = -128;
  48.     qErr                        = -1;                            { queue element not found during deletion }
  49.     vTypErr                        = -2;                            { invalid queue element }
  50.     corErr                        = -3;                            { core routine number out of range }
  51.     unimpErr                    = -4;                            { unimplemented core routine }
  52.     SlpTypeErr                    = -5;                            { invalid queue element }
  53.     seNoDB                        = -8;                            { no debugger installed to handle debugger command }
  54.     controlErr                    = -17;                            { I/O System Errors }
  55.     statusErr                    = -18;                            { I/O System Errors }
  56.     readErr                        = -19;                            { I/O System Errors }
  57.     writErr                        = -20;                            { I/O System Errors }
  58.     badUnitErr                    = -21;                            { I/O System Errors }
  59.     unitEmptyErr                = -22;                            { I/O System Errors }
  60.     openErr                        = -23;                            { I/O System Errors }
  61.     closErr                        = -24;                            { I/O System Errors }
  62.     dRemovErr                    = -25;                            { tried to remove an open driver }
  63.     dInstErr                    = -26;                            { DrvrInstall couldn't find driver in resources }
  64.  
  65.     abortErr                    = -27;                            { IO call aborted by KillIO }
  66.     iIOAbortErr                    = -27;                            { IO abort error (Printing Manager) }
  67.     notOpenErr                    = -28;                            { Couldn't rd/wr/ctl/sts cause driver not opened }
  68.     unitTblFullErr                = -29;                            { unit table has no more entries }
  69.     dceExtErr                    = -30;                            { dce extension error }
  70.     slotNumErr                    = -360;                            { invalid slot # error }
  71.     gcrOnMFMErr                    = -400;                            { gcr format on high density media error }
  72.     dirFulErr                    = -33;                            { Directory full }
  73.     dskFulErr                    = -34;                            { disk full }
  74.     nsvErr                        = -35;                            { no such volume }
  75.     ioErr                        = -36;                            { I/O error (bummers) }
  76.     bdNamErr                    = -37;                            { there may be no bad names in the final system! }
  77.     fnOpnErr                    = -38;                            { File not open }
  78.     eofErr                        = -39;                            { End of file }
  79.     posErr                        = -40;                            { tried to position to before start of file (r/w) }
  80.     mFulErr                        = -41;                            { memory full (open) or file won't fit (load) }
  81.     tmfoErr                        = -42;                            { too many files open }
  82.     fnfErr                        = -43;                            { File not found }
  83.     wPrErr                        = -44;                            { diskette is write protected. }
  84.     fLckdErr                    = -45;                            { file is locked }
  85.  
  86.     vLckdErr                    = -46;                            { volume is locked }
  87.     fBsyErr                        = -47;                            { File is busy (delete) }
  88.     dupFNErr                    = -48;                            { duplicate filename (rename) }
  89.     opWrErr                        = -49;                            { file already open with with write permission }
  90.     rfNumErr                    = -51;                            { refnum error }
  91.     gfpErr                        = -52;                            { get file position error }
  92.     volOffLinErr                = -53;                            { volume not on line error (was Ejected) }
  93.     permErr                        = -54;                            { permissions error (on file open) }
  94.     volOnLinErr                    = -55;                            { drive volume already on-line at MountVol }
  95.     nsDrvErr                    = -56;                            { no such drive (tried to mount a bad drive num) }
  96.     noMacDskErr                    = -57;                            { not a mac diskette (sig bytes are wrong) }
  97.     extFSErr                    = -58;                            { volume in question belongs to an external fs }
  98.     fsRnErr                        = -59;                            { file system internal error:during rename the old entry was deleted but could not be restored. }
  99.     badMDBErr                    = -60;                            { bad master directory block }
  100.     wrPermErr                    = -61;                            { write permissions error }
  101.     dirNFErr                    = -120;                            { Directory not found }
  102.     tmwdoErr                    = -121;                            { No free WDCB available }
  103.     badMovErr                    = -122;                            { Move into offspring error }
  104.     wrgVolTypErr                = -123;                            { Wrong volume type error [operation not supported for MFS] }
  105.     volGoneErr                    = -124;                            { Server volume has been disconnected. }
  106.  
  107.     fidNotFound                    = -1300;                        { no file thread exists. }
  108.     fidExists                    = -1301;                        { file id already exists }
  109.     notAFileErr                    = -1302;                        { directory specified }
  110.     diffVolErr                    = -1303;                        { files on different volumes }
  111.     catChangedErr                = -1304;                        { the catalog has been modified }
  112.     desktopDamagedErr            = -1305;                        { desktop database files are corrupted }
  113.     sameFileErr                    = -1306;                        { can't exchange a file with itself }
  114.     badFidErr                    = -1307;                        { file id is dangling or doesn't match with the file number }
  115.     notARemountErr                = -1308;                        { when _Mount allows only remounts and doesn't get one }
  116.     fileBoundsErr                = -1309;                        { file's EOF, offset, mark or size is too big }
  117.     fsDataTooBigErr                = -1310;                        { file or volume is too big for system }
  118.     envNotPresent                = -5500;                        { returned by glue. }
  119.     envBadVers                    = -5501;                        { Version non-positive }
  120.     envVersTooBig                = -5502;                        { Version bigger than call can handle }
  121.     fontDecError                = -64;                            { error during font declaration }
  122.     fontNotDeclared                = -65;                            { font not declared }
  123.     fontSubErr                    = -66;                            { font substitution occured }
  124.     fontNotOutlineErr            = -32615;                        { bitmap font passed to routine that does outlines only }
  125.     firstDskErr                    = -84;                            { I/O System Errors }
  126.     lastDskErr                    = -64;                            { I/O System Errors }
  127.     noDriveErr                    = -64;                            { drive not installed }
  128.     offLinErr                    = -65;                            { r/w requested for an off-line drive }
  129.     noNybErr                    = -66;                            { couldn't find 5 nybbles in 200 tries }
  130.  
  131.     noAdrMkErr                    = -67;                            { couldn't find valid addr mark }
  132.     dataVerErr                    = -68;                            { read verify compare failed }
  133.     badCksmErr                    = -69;                            { addr mark checksum didn't check }
  134.     badBtSlpErr                    = -70;                            { bad addr mark bit slip nibbles }
  135.     noDtaMkErr                    = -71;                            { couldn't find a data mark header }
  136.     badDCksum                    = -72;                            { bad data mark checksum }
  137.     badDBtSlp                    = -73;                            { bad data mark bit slip nibbles }
  138.     wrUnderrun                    = -74;                            { write underrun occurred }
  139.     cantStepErr                    = -75;                            { step handshake failed }
  140.     tk0BadErr                    = -76;                            { track 0 detect doesn't change }
  141.     initIWMErr                    = -77;                            { unable to initialize IWM }
  142.     twoSideErr                    = -78;                            { tried to read 2nd side on a 1-sided drive }
  143.     spdAdjErr                    = -79;                            { unable to correctly adjust disk speed }
  144.     seekErr                        = -80;                            { track number wrong on address mark }
  145.     sectNFErr                    = -81;                            { sector number never found on a track }
  146.     fmt1Err                        = -82;                            { can't find sector 0 after track format }
  147.     fmt2Err                        = -83;                            { can't get enough sync }
  148.     verErr                        = -84;                            { track failed to verify }
  149.     clkRdErr                    = -85;                            { unable to read same clock value twice }
  150.     clkWrErr                    = -86;                            { time written did not verify }
  151.  
  152.     prWrErr                        = -87;                            { parameter ram written didn't read-verify }
  153.     prInitErr                    = -88;                            { InitUtil found the parameter ram uninitialized }
  154.     rcvrErr                        = -89;                            { SCC receiver error (framing; parity; OR) }
  155.     breakRecd                    = -90;                            { Break received (SCC) }
  156.                                                                 { Power Manager Errors }
  157.     pmBusyErr                    = -13000;                        { Power Mgr never ready to start handshake }
  158.     pmReplyTOErr                = -13001;                        { Timed out waiting for reply }
  159.     pmSendStartErr                = -13002;                        { during send, pmgr did not start hs }
  160.     pmSendEndErr                = -13003;                        { during send, pmgr did not finish hs }
  161.     pmRecvStartErr                = -13004;                        { during receive, pmgr did not start hs }
  162.     pmRecvEndErr                = -13005;                        { during receive, pmgr did not finish hs configured for this connection }
  163.                                                                 {  Printing Errors  }
  164.     iMemFullErr                    = -108;
  165.     iIOAbort                    = -27;                            { Scrap Manager errors }
  166.     noScrapErr                    = -100;                            { No scrap exists error }
  167.     noTypeErr                    = -102;                            { No object of that type in scrap }
  168.     memROZWarn                    = -99;                            { soft error in ROZ }
  169.     memROZError                    = -99;                            { hard error in ROZ }
  170.     memROZErr                    = -99;                            { hard error in ROZ }
  171.     memFullErr                    = -108;                            { Not enough room in heap zone }
  172.     nilHandleErr                = -109;                            { Master Pointer was NIL in HandleZone or other }
  173.     memWZErr                    = -111;                            { WhichZone failed (applied to free block) }
  174.     memPurErr                    = -112;                            { trying to purge a locked or non-purgeable block }
  175.     memAdrErr                    = -110;                            { address was odd; or out of range }
  176.  
  177.     memAZErr                    = -113;                            { Address in zone check failed }
  178.     memPCErr                    = -114;                            { Pointer Check failed }
  179.     memBCErr                    = -115;                            { Block Check failed }
  180.     memSCErr                    = -116;                            { Size Check failed }
  181.     memLockedErr                = -117;                            { trying to move a locked block (MoveHHi) }
  182.     resourceInMemory            = -188;                            { Resource already in memory }
  183.     writingPastEnd                = -189;                            { Writing past end of file }
  184.     inputOutOfBounds            = -190;                            { Offset of Count out of bounds }
  185.     resNotFound                    = -192;                            { Resource not found }
  186.     resFNotFound                = -193;                            { Resource file not found }
  187.     addResFailed                = -194;                            { AddResource failed }
  188.     addRefFailed                = -195;                            { AddReference failed }
  189.     rmvResFailed                = -196;                            { RmveResource failed }
  190.     rmvRefFailed                = -197;                            { RmveReference failed }
  191.     resAttrErr                    = -198;                            { attribute inconsistent with operation }
  192.     mapReadErr                    = -199;                            { map inconsistent with operation }
  193.     CantDecompress                = -186;                            { resource bent ("the bends") - can't decompress a compressed resource }
  194.     badExtResource                = -185;                            { extended resource has a bad format. }
  195.     evtNotEnb                    = 1;                            { event not enabled at PostEvent }
  196.     noMemForPictPlaybackErr        = -145;
  197.     rgnOverflowErr                = -147;
  198.     rgnTooBigError                = -147;
  199.     pixMapTooDeepErr            = -148;
  200.     insufficientStackErr        = -149;
  201.     nsStackErr                    = -149;
  202.  
  203. {  OffScreen QuickDraw Errors  }
  204.     cMatchErr                    = -150;                            { Color2Index failed to find an index }
  205.     cTempMemErr                    = -151;                            { failed to allocate memory for temporary structures }
  206.     cNoMemErr                    = -152;                            { failed to allocate memory for structure }
  207.     cRangeErr                    = -153;                            { range error on colorTable request }
  208.     cProtectErr                    = -154;                            { colorTable entry protection violation }
  209.     cDevErr                        = -155;                            { invalid type of graphics device }
  210.     cResErr                        = -156;                            { invalid resolution for MakeITable }
  211.     cDepthErr                    = -157;                            { invalid pixel depth  }
  212.     rgnTooBigErr                = -500;
  213.     updPixMemErr                = -125;                            { insufficient memory to update a pixmap }
  214.     pictInfoVersionErr            = -11000;                        { wrong version of the PictInfo structure }
  215.     pictInfoIDErr                = -11001;                        { the internal consistancy check for the PictInfoID is wrong }
  216.     pictInfoVerbErr                = -11002;                        { the passed verb was invalid }
  217.     cantLoadPickMethodErr        = -11003;                        { unable to load the custom pick proc }
  218.     colorsRequestedErr            = -11004;                        { the number of colors requested was illegal }
  219.     pictureDataErr                = -11005;                        { the picture data was invalid }
  220.                                                                 { Sound Manager errors }
  221.     noHardware                    = -200;                            { obsolete spelling }
  222.     notEnoughHardware            = -201;                            { obsolete spelling }
  223.     queueFull                    = -203;                            { Sound Manager Error Returns }
  224.     resProblem                    = -204;                            { Sound Manager Error Returns }
  225.     badChannel                    = -205;                            { Sound Manager Error Returns }
  226.  
  227.     badFormat                    = -206;                            { Sound Manager Error Returns }
  228.     notEnoughBufferSpace        = -207;                            { could not allocate enough memory }
  229.     badFileFormat                = -208;                            { was not type AIFF or was of bad format,corrupt }
  230.     channelBusy                    = -209;                            { the Channel is being used for a PFD already }
  231.     buffersTooSmall                = -210;                            { can not operate in the memory allowed }
  232.     channelNotBusy                = -211;
  233.     noMoreRealTime                = -212;                            { not enough CPU cycles left to add another task }
  234.     siNoSoundInHardware            = -220;                            { no Sound Input hardware }
  235.     siBadSoundInDevice            = -221;                            { invalid index passed to SoundInGetIndexedDevice }
  236.     siNoBufferSpecified            = -222;                            { returned by synchronous SPBRecord if nil buffer passed }
  237.     siInvalidCompression        = -223;                            { invalid compression type }
  238.     siHardDriveTooSlow            = -224;                            { hard drive too slow to record to disk }
  239.     siInvalidSampleRate            = -225;                            { invalid sample rate }
  240.     siInvalidSampleSize            = -226;                            { invalid sample size }
  241.     siDeviceBusyErr                = -227;                            { input device already in use }
  242.     siBadDeviceName                = -228;                            { input device could not be opened }
  243.     siBadRefNum                    = -229;                            { invalid input device reference number }
  244.     siInputDeviceErr            = -230;                            { input device hardware failure }
  245.     siUnknownInfoType            = -231;                            { invalid info type selector (returned by driver) }
  246.     siUnknownQuality            = -232;                            { invalid quality selector (returned by driver) }
  247.  
  248. { Speech Manager errors }
  249.     noSynthFound                = -240;
  250.     synthOpenFailed                = -241;
  251.     synthNotReady                = -242;
  252.     bufTooSmall                    = -243;
  253.     voiceNotFound                = -244;
  254.     incompatibleVoice            = -245;
  255.     badDictFormat                = -246;
  256.     badInputText                = -247;
  257.  
  258. {  Midi Manager Errors:  }
  259.     midiNoClientErr                = -250;                            { no client with that ID found }
  260.     midiNoPortErr                = -251;                            { no port with that ID found }
  261.     midiTooManyPortsErr            = -252;                            { too many ports already installed in the system }
  262.     midiTooManyConsErr            = -253;                            { too many connections made }
  263.     midiVConnectErr                = -254;                            { pending virtual connection created }
  264.     midiVConnectMade            = -255;                            { pending virtual connection resolved }
  265.     midiVConnectRmvd            = -256;                            { pending virtual connection removed }
  266.     midiNoConErr                = -257;                            { no connection exists between specified ports }
  267.     midiWriteErr                = -258;                            { MIDIWritePacket couldn't write to all connected ports }
  268.     midiNameLenErr                = -259;                            { name supplied is longer than 31 characters }
  269.     midiDupIDErr                = -260;                            { duplicate client ID }
  270.     midiInvalidCmdErr            = -261;                            { command not supported for port type }
  271.  
  272. { Notification Manager errors }
  273.     nmTypErr                    = -299;                            { wrong queue type }
  274.     siInitSDTblErr                = 1;                            { slot int dispatch table could not be initialized. }
  275.     siInitVBLQsErr                = 2;                            { VBLqueues for all slots could not be initialized. }
  276.     siInitSPTblErr                = 3;                            { slot priority table could not be initialized. }
  277.     sdmJTInitErr                = 10;                            { SDM Jump Table could not be initialized. }
  278.     sdmInitErr                    = 11;                            { SDM could not be initialized. }
  279.     sdmSRTInitErr                = 12;                            { Slot Resource Table could not be initialized. }
  280.     sdmPRAMInitErr                = 13;                            { Slot PRAM could not be initialized. }
  281.     sdmPriInitErr                = 14;                            { Cards could not be initialized. }
  282.     smSDMInitErr                = -290;                            { Error; SDM could not be initialized. }
  283.     smSRTInitErr                = -291;                            { Error; Slot Resource Table could not be initialized. }
  284.     smPRAMInitErr                = -292;                            { Error; Slot Resource Table could not be initialized. }
  285.     smPriInitErr                = -293;                            { Error; Cards could not be initialized. }
  286.     smEmptySlot                    = -300;                            { No card in slot }
  287.     smCRCFail                    = -301;                            { CRC check failed for declaration data }
  288.     smFormatErr                    = -302;                            { FHeader Format is not Apple's }
  289.     smRevisionErr                = -303;                            { Wrong revison level }
  290.     smNoDir                        = -304;                            { Directory offset is Nil }
  291.     smDisabledSlot                = -305;                            { This slot is disabled (-305 use to be smLWTstBad) }
  292.     smNosInfoArray                = -306;                            { No sInfoArray. Memory Mgr error. }
  293.  
  294.                                                                 { Dictionary Manager errors }
  295.     notBTree                    = -410;                            { The file is not a dictionary. }
  296.     btNoSpace                    = -413;                            { Can't allocate disk space. }
  297.     btDupRecErr                    = -414;                            { Record already exists. }
  298.     btRecNotFnd                    = -415;                            { Record cannot be found. }
  299.     btKeyLenErr                    = -416;                            { Maximum key length is too long or equal to zero. }
  300.     btKeyAttrErr                = -417;                            { There is no such a key attribute. }
  301.     unknownInsertModeErr        = -20000;                        { There is no such an insert mode. }
  302.     recordDataTooBigErr            = -20001;                        { The record data is bigger than buffer size (1024 bytes). }
  303.     invalidIndexErr                = -20002;                        { The recordIndex parameter is not valid. }
  304.  
  305.     smResrvErr                    = -307;                            { Fatal reserved error. Resreved field <> 0. }
  306.     smUnExBusErr                = -308;                            { Unexpected BusError }
  307.     smBLFieldBad                = -309;                            { ByteLanes field was bad. }
  308.     smFHBlockRdErr                = -310;                            { Error occured during _sGetFHeader. }
  309.     smFHBlkDispErr                = -311;                            { Error occured during _sDisposePtr (Dispose of FHeader block). }
  310.     smDisposePErr                = -312;                            { _DisposePointer error }
  311.     smNoBoardSRsrc                = -313;                            { No Board sResource. }
  312.     smGetPRErr                    = -314;                            { Error occured during _sGetPRAMRec (See SIMStatus). }
  313.     smNoBoardId                    = -315;                            { No Board Id. }
  314.     smInitStatVErr                = -316;                            { The InitStatusV field was negative after primary or secondary init. }
  315.     smInitTblVErr                = -317;                            { An error occured while trying to initialize the Slot Resource Table. }
  316.     smNoJmpTbl                    = -318;                            { SDM jump table could not be created. }
  317.     smReservedSlot                = -318;                            { slot is reserved, VM should not use this address space. }
  318.     smBadBoardId                = -319;                            { BoardId was wrong; re-init the PRAM record. }
  319.     smBusErrTO                    = -320;                            { BusError time out. }
  320.                                                                 {  These errors are logged in the  vendor status field of the sInfo record.  }
  321.     svTempDisable                = -32768;                        { Temporarily disable card but run primary init. }
  322.     svDisabled                    = -32640;                        { Reserve range -32640 to -32768 for Apple temp disables. }
  323.     smBadRefId                    = -330;                            { Reference Id not found in List }
  324.     smBadsList                    = -331;                            { Bad sList: Id1 < Id2 < Id3 ...format is not followed. }
  325.     smReservedErr                = -332;                            { Reserved field not zero }
  326.     smCodeRevErr                = -333;                            { Code revision is wrong }
  327.  
  328.     smCPUErr                    = -334;                            { Code revision is wrong }
  329.     smsPointerNil                = -335;                            { LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information. }
  330.     smNilsBlockErr                = -336;                            { Nil sBlock error (Dont allocate and try to use a nil sBlock) }
  331.     smSlotOOBErr                = -337;                            { Slot out of bounds error }
  332.     smSelOOBErr                    = -338;                            { Selector out of bounds error }
  333.     smNewPErr                    = -339;                            { _NewPtr error }
  334.     smBlkMoveErr                = -340;                            { _BlockMove error }
  335.     smCkStatusErr                = -341;                            { Status of slot = fail. }
  336.     smGetDrvrNamErr                = -342;                            { Error occured during _sGetDrvrName. }
  337.     smDisDrvrNamErr                = -343;                            { Error occured during _sDisDrvrName. }
  338.     smNoMoresRsrcs                = -344;                            { No more sResources }
  339.     smsGetDrvrErr                = -345;                            { Error occurred during _sGetDriver. }
  340.     smBadsPtrErr                = -346;                            { Bad pointer was passed to sCalcsPointer }
  341.     smByteLanesErr                = -347;                            { NumByteLanes was determined to be zero. }
  342.     smOffsetErr                    = -348;                            { Offset was too big (temporary error }
  343.     smNoGoodOpens                = -349;                            { No opens were successfull in the loop. }
  344.     smSRTOvrFlErr                = -350;                            { SRT over flow. }
  345.     smRecNotFnd                    = -351;                            { Record not found in the SRT. }
  346.     editionMgrInitErr            = -450;                            { edition manager not inited by this app }
  347.     badSectionErr                = -451;                            { not a valid SectionRecord }
  348.  
  349.     notRegisteredSectionErr        = -452;                            { not a registered SectionRecord }
  350.     badEditionFileErr            = -453;                            { edition file is corrupt }
  351.     badSubPartErr                = -454;                            { can not use sub parts in this release }
  352.     multiplePublisherWrn        = -460;                            { A Publisher is already registered for that container }
  353.     containerNotFoundWrn        = -461;                            { could not find editionContainer at this time }
  354.     containerAlreadyOpenWrn        = -462;                            { container already opened by this section }
  355.     notThePublisherWrn            = -463;                            { not the first registered publisher for that container }
  356.     teScrapSizeErr                = -501;                            { scrap item too big for text edit record }
  357.     hwParamErr                    = -502;                            { bad selector for _HWPriv }
  358.                                                                 { Process Manager errors }
  359.     procNotFound                = -600;                            { no eligible process with specified descriptor }
  360.     memFragErr                    = -601;                            { not enough room to launch app w/special requirements }
  361.     appModeErr                    = -602;                            { memory mode is 32-bit, but app not 32-bit clean }
  362.     protocolErr                    = -603;                            { app made module calls in improper order }
  363.     hardwareConfigErr            = -604;                            { hardware configuration not correct for call }
  364.     appMemFullErr                = -605;                            { application SIZE not big enough for launch }
  365.     appIsDaemon                    = -606;                            { app is BG-only, and launch flags disallow this }
  366.     bufferIsSmall                = -607;                            { error returns from Post and Accept  }
  367.     noOutstandingHLE            = -608;
  368.     connectionInvalid            = -609;
  369.     noUserInteractionAllowed    = -610;                            {  no user interaction allowed  }
  370.  
  371. {  Thread Manager Error Codes  }
  372.     threadTooManyReqsErr        = -617;
  373.     threadNotFoundErr            = -618;
  374.     threadProtocolErr            = -619;
  375.  
  376. { MemoryDispatch errors }
  377.     notEnoughMemoryErr            = -620;                            { insufficient physical memory }
  378.     notHeldErr                    = -621;                            { specified range of memory is not held }
  379.     cannotMakeContiguousErr        = -622;                            { cannot make specified range contiguous }
  380.     notLockedErr                = -623;                            { specified range of memory is not locked }
  381.     interruptsMaskedErr            = -624;                            { don't call with interrupts masked }
  382.     cannotDeferErr                = -625;                            { unable to defer additional functions }
  383.     noMMUErr                    = -626;                            { no MMU present }
  384.  
  385.     ddpSktErr                    = -91;                            { error in soket number }
  386.     ddpLenErr                    = -92;                            { data length too big }
  387.     noBridgeErr                    = -93;                            { no network bridge for non-local send }
  388.     lapProtErr                    = -94;                            { error in attaching/detaching protocol }
  389.     excessCollsns                = -95;                            { excessive collisions on write }
  390.     portNotPwr                    = -96;                            { serial port not currently powered }
  391.     portInUse                    = -97;                            { driver Open error code (port is in use) }
  392.     portNotCf                    = -98;                            { driver Open error code (parameter RAM not configured for this connection) }
  393.  
  394. { Help Mgr error range: -850 to -874 }
  395.     hmHelpDisabled                = -850;                            {  Show Balloons mode was off, call to routine ignored  }
  396.     hmBalloonAborted            = -853;                            {  Returned if mouse was moving or mouse wasn't in window port rect  }
  397.     hmSameAsLastBalloon            = -854;                            {  Returned from HMShowMenuBalloon if menu & item is same as last time  }
  398.     hmHelpManagerNotInited        = -855;                            {  Returned from HMGetHelpMenuHandle if help menu not setup  }
  399.     hmSkippedBalloon            = -857;                            {  Returned from calls if helpmsg specified a skip balloon  }
  400.     hmWrongVersion                = -858;                            {  Returned if help mgr resource was the wrong version  }
  401.     hmUnknownHelpType            = -859;                            {  Returned if help msg record contained a bad type  }
  402.     hmOperationUnsupported        = -861;                            {  Returned from HMShowBalloon call if bad method passed to routine  }
  403.     hmNoBalloonUp                = -862;                            {  Returned from HMRemoveBalloon if no balloon was visible when call was made  }
  404.     hmCloseViewActive            = -863;                            {  Returned from HMRemoveBalloon if CloseView was active  }
  405.  
  406.     nbpBuffOvr                    = -1024;                        { Buffer overflow in LookupName }
  407.     nbpNoConfirm                = -1025;
  408.     nbpConfDiff                    = -1026;                        { Name confirmed at different socket }
  409.     nbpDuplicate                = -1027;                        { Duplicate name exists already }
  410.     nbpNotFound                    = -1028;                        { Name not found on remove }
  411.     nbpNISErr                    = -1029;                        { Error trying to open the NIS }
  412.     aspBadVersNum                = -1066;                        { Server cannot support this ASP version }
  413.     aspBufTooSmall                = -1067;                        { Buffer too small }
  414.     aspNoMoreSess                = -1068;                        { No more sessions on server }
  415.     aspNoServers                = -1069;                        { No servers at that address }
  416.     aspParamErr                    = -1070;                        { Parameter error }
  417.  
  418.     aspServerBusy                = -1071;                        { Server cannot open another session }
  419.     aspSessClosed                = -1072;                        { Session closed }
  420.     aspSizeErr                    = -1073;                        { Command block too big }
  421.     aspTooMany                    = -1074;                        { Too many clients (server error) }
  422.     aspNoAck                    = -1075;                        { No ack on attention request (server err) }
  423.     reqFailed                    = -1096;
  424.     tooManyReqs                    = -1097;
  425.     tooManySkts                    = -1098;
  426.     badATPSkt                    = -1099;
  427.     badBuffNum                    = -1100;
  428.     noRelErr                    = -1101;
  429.     cbNotFound                    = -1102;
  430.     noSendResp                    = -1103;
  431.     noDataArea                    = -1104;
  432.     reqAborted                    = -1105;
  433.  
  434. {  ADSP Error Codes  }
  435.                                                                 {  driver control ioResults  }
  436.     errRefNum                    = -1280;                        {  bad connection refNum  }
  437.     errAborted                    = -1279;                        {  control call was aborted  }
  438.     errState                    = -1278;                        {  bad connection state for this operation  }
  439.     errOpening                    = -1277;                        {  open connection request failed  }
  440.     errAttention                = -1276;                        {  attention message too long  }
  441.     errFwdReset                    = -1275;                        {  read terminated by forward reset  }
  442.     errDSPQueueSize                = -1274;                        {  DSP Read/Write Queue Too small  }
  443.     errOpenDenied                = -1273;                        {  open connection request was denied  }
  444.  
  445. { ***    OSL ERROR CODES            *** }
  446.     errAEImpossibleRange        = -1720;                        {  A range like 3rd to 2nd, or 1st to all.  }
  447.     errAEWrongNumberArgs        = -1721;                        {  Logical op kAENOT used with other than 1 term  }
  448.     errAEAccessorNotFound        = -1723;                        {  Accessor proc matching wantClass and containerType or wildcards not found  }
  449.     errAENoSuchLogical            = -1725;                        {  Something other than AND, OR, or NOT  }
  450.     errAEBadTestKey                = -1726;                        {  Test is neither typeLogicalDescriptor nor typeCompDescriptor  }
  451.     errAENotAnObjSpec            = -1727;                        {  Param to AEResolve not of type 'obj '  }
  452.     errAENoSuchObject            = -1728;                        {  e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error.  }
  453.     errAENegativeCount            = -1729;                        {  CountProc returned negative value  }
  454.     errAEEmptyListContainer        = -1730;                        {  Attempt to pass empty list as container to accessor  }
  455.  
  456. {
  457. --------------------------------------------------------------
  458.         Apple event manager error messages
  459. --------------------------------------------------------------
  460. }
  461.     errAECoercionFail            = -1700;                        {  bad parameter data or unable to coerce the data supplied  }
  462.     errAEDescNotFound            = -1701;
  463.     errAECorruptData            = -1702;
  464.     errAEWrongDataType            = -1703;
  465.     errAENotAEDesc                = -1704;
  466.     errAEBadListItem            = -1705;                        {  the specified list item does not exist  }
  467.     errAENewerVersion            = -1706;                        {  need newer version of the AppleEvent manager  }
  468.     errAENotAppleEvent            = -1707;                        {  the event is not in AppleEvent format  }
  469.     errAEEventNotHandled        = -1708;                        {  the AppleEvent was not handled by any handler  }
  470.     errAEReplyNotValid            = -1709;                        {  AEResetTimer was passed an invalid reply parameter  }
  471.     errAEUnknownSendMode        = -1710;                        {  mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown  }
  472.     errAEWaitCanceled            = -1711;                        {  in AESend, the user cancelled out of wait loop for reply or receipt  }
  473.     errAETimeout                = -1712;                        {  the AppleEvent timed out  }
  474.     errAENoUserInteraction        = -1713;                        {  no user interaction is allowed  }
  475.     errAENotASpecialFunction    = -1714;                        {  there is no special function for/with this keyword  }
  476.     errAEParamMissed            = -1715;                        {  a required parameter was not accessed  }
  477.     errAEUnknownAddressType        = -1716;                        {  the target address type is not known  }
  478.     errAEHandlerNotFound        = -1717;                        {  no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler  }
  479.     errAEReplyNotArrived        = -1718;                        {  the contents of the reply you are accessing have not arrived yet  }
  480.     errAEIllegalIndex            = -1719;                        {  index is out of range in a put operation  }
  481.     errAEUnknownObjectType        = -1731;                        {  available only in version 1.0.1 or greater  }
  482.     errAERecordingIsAlreadyOn    = -1732;                        {  available only in version 1.0.1 or greater  }
  483.     errAEReceiveTerminate        = -1733;                        {  break out of all levels of AEReceive to the topmost (1.1 or greater)  }
  484.     errAEReceiveEscapeCurrent    = -1734;                        {  break out of only lowest level of AEReceive (1.1 or greater)  }
  485.     errAEEventFiltered            = -1735;                        {  event has been filtered, and should not be propogated (1.1 or greater)  }
  486.     errAEDuplicateHandler        = -1736;                        {  attempt to install handler in table for identical class and id (1.1 or greater)  }
  487.     errAEStreamBadNesting        = -1737;                        {  nesting violation while streaming  }
  488.     errAEStreamAlreadyConverted    = -1738;                        {  attempt to convert a stream that has already been converted  }
  489.     errAEDescIsNull                = -1739;                        {  attempting to perform an invalid operation on a null descriptor  }
  490.  
  491. {
  492. *************************************************************************
  493.     API Errors
  494. *************************************************************************
  495. }
  496.     errOSASystemError            = -1750;
  497.     errOSAInvalidID                = -1751;
  498.     errOSABadStorageType        = -1752;
  499.     errOSAScriptError            = -1753;
  500.     errOSABadSelector            = -1754;
  501.     errOSASourceNotAvailable    = -1756;
  502.     errOSANoSuchDialect            = -1757;
  503.     errOSADataFormatObsolete    = -1758;
  504.     errOSADataFormatTooNew        = -1759;
  505.     errOSACorruptData            = -1702;
  506.     errOSARecordingIsAlreadyOn    = -1732;
  507.     errOSAComponentMismatch        = -1761;                        {  Parameters are from 2 different components  }
  508.     errOSACantOpenComponent        = -1762;                        {  Can't connect to scripting system with that ID  }
  509.  
  510. { QuickTime errors }
  511.     couldNotResolveDataRef        = -2000;
  512.     badImageDescription            = -2001;
  513.     badPublicMovieAtom            = -2002;
  514.     cantFindHandler                = -2003;
  515.     cantOpenHandler                = -2004;
  516.     badComponentType            = -2005;
  517.     noMediaHandler                = -2006;
  518.     noDataHandler                = -2007;
  519.     invalidMedia                = -2008;
  520.     invalidTrack                = -2009;
  521.     invalidMovie                = -2010;
  522.     invalidSampleTable            = -2011;
  523.     invalidDataRef                = -2012;
  524.     invalidHandler                = -2013;
  525.     invalidDuration                = -2014;
  526.     invalidTime                    = -2015;
  527.     cantPutPublicMovieAtom        = -2016;
  528.     badEditList                    = -2017;
  529.     mediaTypesDontMatch            = -2018;
  530.     progressProcAborted            = -2019;
  531.     movieToolboxUninitialized    = -2020;
  532.     noRecordOfApp                = -2020;                        {  replica  }
  533.     wfFileNotFound                = -2021;
  534.     cantCreateSingleForkFile    = -2022;                        {  happens when file already exists  }
  535.     invalidEditState            = -2023;
  536.     nonMatchingEditState        = -2024;
  537.     staleEditState                = -2025;
  538.     userDataItemNotFound        = -2026;
  539.     maxSizeToGrowTooSmall        = -2027;
  540.     badTrackIndex                = -2028;
  541.     trackIDNotFound                = -2029;
  542.     trackNotInMovie                = -2030;
  543.     timeNotInTrack                = -2031;
  544.     timeNotInMedia                = -2032;
  545.     badEditIndex                = -2033;
  546.     internalQuickTimeError        = -2034;
  547.     cantEnableTrack                = -2035;
  548.     invalidRect                    = -2036;
  549.     invalidSampleNum            = -2037;
  550.     invalidChunkNum                = -2038;
  551.     invalidSampleDescIndex        = -2039;
  552.     invalidChunkCache            = -2040;
  553.     invalidSampleDescription    = -2041;
  554.     dataNotOpenForRead            = -2042;
  555.     dataNotOpenForWrite            = -2043;
  556.     dataAlreadyOpenForWrite        = -2044;
  557.     dataAlreadyClosed            = -2045;
  558.     endOfDataReached            = -2046;
  559.     dataNoDataRef                = -2047;
  560.     noMovieFound                = -2048;
  561.     invalidDataRefContainer        = -2049;
  562.     badDataRefIndex                = -2050;
  563.     noDefaultDataRef            = -2051;
  564.     couldNotUseAnExistingSample    = -2052;
  565.     featureUnsupported            = -2053;
  566.     noVideoTrackInMovieErr        = -2054;                        {  QT for Windows error  }
  567.     noSoundTrackInMovieErr        = -2055;                        {  QT for Windows error  }
  568.     soundSupportNotAvailableErr    = -2056;                        {  QT for Windows error  }
  569.     unsupportedAuxiliaryImportData = -2057;
  570.     auxiliaryExportDataUnavailable = -2058;
  571.     samplesAlreadyInMediaErr    = -2059;
  572.     movieTextNotFoundErr        = -2062;
  573.     invalidSpriteWorldPropertyErr = -2064;
  574.     invalidSpritePropertyErr    = -2065;
  575.     gWorldsNotSameDepthAndSizeErr = -2066;
  576.     invalidSpriteIndexErr        = -2067;
  577.     invalidImageIndexErr        = -2068;
  578.  
  579.     cannotFindAtomErr            = -2101;
  580.     notLeafAtomErr                = -2102;
  581.     atomsNotOfSameTypeErr        = -2103;
  582.     atomIndexInvalidErr            = -2104;
  583.     duplicateAtomTypeAndIDErr    = -2105;
  584.     invalidAtomErr                = -2106;
  585.     invalidAtomContainerErr        = -2107;
  586.     invalidAtomTypeErr            = -2108;
  587.  
  588.     digiUnimpErr                = -2201;                        {  feature unimplemented  }
  589.     qtParamErr                    = -2202;                        {  bad input parameter (out of range, etc)  }
  590.     matrixErr                    = -2203;                        {  bad matrix, digitizer did nothing  }
  591.     notExactMatrixErr            = -2204;                        {  warning of bad matrix, digitizer did its best  }
  592.     noMoreKeyColorsErr            = -2205;                        {  all key indexes in use  }
  593.     notExactSizeErr                = -2206;                        {  Can't do exact size requested  }
  594.     badDepthErr                    = -2207;                        {  Can't digitize into this depth  }
  595.     noDMAErr                    = -2208;                        {  Can't do DMA digitizing (i.e. can't go to requested dest  }
  596.     badCallOrderErr                = -2209;                        {  Usually due to a status call being called prior to being setup first  }
  597.  
  598. {  NameRegistry error codes  }
  599.     nrLockedErr                    = -2536;
  600.     nrNotEnoughMemoryErr        = -2537;
  601.     nrInvalidNodeErr            = -2538;
  602.     nrNotFoundErr                = -2539;
  603.     nrNotCreatedErr                = -2540;
  604.     nrNameErr                    = -2541;
  605.     nrNotSlotDeviceErr            = -2542;
  606.     nrDataTruncatedErr            = -2543;
  607.     nrPowerErr                    = -2544;
  608.     nrPowerSwitchAbortErr        = -2545;
  609.     nrTypeMismatchErr            = -2546;
  610.     nrNotModifiedErr            = -2547;
  611.     nrOverrunErr                = -2548;
  612.     nrResultCodeBase            = -2549;
  613.     nrPathNotFound                = -2550;                        {  a path component lookup failed  }
  614.     nrPathBufferTooSmall        = -2551;                        {  buffer for path is too small  }
  615.     nrInvalidEntryIterationOp    = -2552;                        {  invalid entry iteration operation  }
  616.     nrPropertyAlreadyExists        = -2553;                        {  property already exists  }
  617.     nrIterationDone                = -2554;                        {  iteration operation is done  }
  618.     nrExitedIteratorScope        = -2555;                        {  outer scope of iterator was exited  }
  619.     nrTransactionAborted        = -2556;                        {  transaction was aborted  }
  620.  
  621. {
  622. *************************************************************************
  623.     Script Error Codes
  624. *************************************************************************
  625. }
  626. {  Runtime errors:  }
  627.     errASCantConsiderAndIgnore    = -2720;
  628.     errASCantCompareMoreThan32k    = -2721;                        {  Parser/Compiler errors:  }
  629.     errASTerminologyNestingTooDeep = -2760;
  630.     errASIllegalFormalParameter    = -2761;
  631.     errASParameterNotForEvent    = -2762;
  632.     errASNoResultReturned        = -2763;                        {      The range -2780 thru -2799 is reserved for dialect specific error codes. (Error codes from different dialects may overlap.)  }
  633.     errASInconsistentNames        = -2780;                        {      English errors:  }
  634.  
  635. { Component Manager & component errors }
  636.     invalidComponentID            = -3000;
  637.     validInstancesExist            = -3001;
  638.     componentNotCaptured        = -3002;
  639.     componentDontRegister        = -3003;
  640.  
  641. {  Color Picker errors }
  642.     firstPickerError            = -4000;
  643.     invalidPickerType            = -4000;
  644.     requiredFlagsDontMatch        = -4001;
  645.     pickerResourceError            = -4002;
  646.     cantLoadPicker                = -4003;
  647.     cantCreatePickerWindow        = -4004;
  648.     cantLoadPackage                = -4005;
  649.     pickerCantLive                = -4006;
  650.     colorSyncNotInstalled        = -4007;
  651.     badProfileError                = -4008;
  652.     noHelpForItem                = -4009;
  653.  
  654. { Text Engines, TSystemTextEngines, HIEditText error coded }
  655.     errUnknownAttributeTag        = -5240;
  656.     errMarginWilllNotFit        = -5241;
  657.     errNotInImagingMode            = -5242;
  658.     errAlreadyInImagingMode        = -5243;
  659.     errEngineNotFound            = -5244;
  660.     errIteratorReachedEnd        = -5245;
  661.     errInvalidRange                = -5246;
  662.     errOffsetNotOnElementBounday = -5247;
  663.     errNoHiliteText                = -5248;
  664.     errEmptyScrap                = -5249;
  665.     errReadOnlyText                = -5250;
  666.     errUnknownElement            = -5251;
  667.     errNonContiuousAttribute    = -5252;
  668.     errCannotUndo                = -5253;
  669.  
  670. {  NumberFormatting error codes }
  671.     numberFormattingNotANumberErr = -5200;
  672.     numberFormattingOverflowInDestinationErr = -5201;
  673.     numberFormattingBadNumberFormattingObjectErr = -5202;
  674.     numberFormattingSpuriousCharErr = -5203;
  675.     numberFormattingLiteralMissingErr = -5204;
  676.     numberFormattingDelimiterMissingErr = -5205;
  677.     numberFormattingEmptyFormatErr = -5206;
  678.     numberFormattingBadFormatErr = -5207;
  679.     numberFormattingBadOptionsErr = -5028;
  680.     numberFormattingBadTokenErr    = -5209;
  681.     numberFormattingUnOrdredCurrencyRangeErr = -5210;
  682.     numberFormattingBadCurrencyPositionErr = -5211;
  683.     numberFortmattingNotADigitErr = -5212;
  684.  
  685. {  TextParser error codes }
  686.     textParserBadParamErr        = -5220;
  687.     textParserObjectNotFoundErr    = -5221;
  688.     textParserBadTokenValueErr    = -5222;
  689.     textParserBadParserObjectErr = -5223;
  690.     textParserParamErr            = -5224;
  691.     textParserNoMoreTextErr        = -5225;
  692.     textParserBadTextLanguageErr = -5226;
  693.     textParserBadTextEncodingErr = -5227;
  694.     textParserNoSuchTokenFoundErr = -5228;
  695.     textParserNoMoreTokensErr    = -5229;
  696.  
  697. {  Collection Manager errors  }
  698.     collectionItemLockedErr        = -5750;
  699.     collectionItemNotFoundErr    = -5751;
  700.     collectionIndexRangeErr        = -5752;
  701.     collectionVersionErr        = -5753;
  702.  
  703. {  Unicode Converter Error Codes }
  704.     unicodeChecksumErr            = -8769;
  705.     unicodeNoTableErr            = -8768;
  706.     unicodeVariantErr            = -8767;
  707.     unicodeFallbacksErr            = -8766;
  708.     unicodePartConvertErr        = -8765;
  709.     unicodeBufErr                = -8764;
  710.     unicodeCharErr                = -8763;
  711.     unicodeElementErr            = -8762;
  712.     unicodeNotFoundErr            = -8761;
  713.     unicodeTableFormatErr        = -8760;
  714.     unicodeDirectionErr            = -8759;
  715.     unicodeContextualErr        = -8758;
  716.     unicodeTextEncodingDataErr    = -8757;
  717.  
  718.     codecErr                    = -8960;
  719.     noCodecErr                    = -8961;
  720.     codecUnimpErr                = -8962;
  721.     codecSizeErr                = -8963;
  722.     codecScreenBufErr            = -8964;
  723.     codecImageBufErr            = -8965;
  724.     codecSpoolErr                = -8966;
  725.     codecAbortErr                = -8967;
  726.     codecWouldOffscreenErr        = -8968;
  727.     codecBadDataErr                = -8969;
  728.     codecDataVersErr            = -8970;
  729.     codecExtensionNotFoundErr    = -8971;
  730.     scTypeNotFoundErr            = -8971;
  731.     codecConditionErr            = -8972;
  732.     codecOpenErr                = -8973;
  733.     codecCantWhenErr            = -8974;
  734.     codecCantQueueErr            = -8975;
  735.     codecNothingToBlitErr        = -8976;
  736.     noDeviceForChannel            = -9400;
  737.     grabTimeComplete            = -9401;
  738.     cantDoThatInCurrentMode        = -9402;
  739.     notEnoughMemoryToGrab        = -9403;
  740.     notEnoughDiskSpaceToGrab    = -9404;
  741.     couldntGetRequiredComponent    = -9405;
  742.     badSGChannel                = -9406;
  743.     seqGrabInfoNotAvailable        = -9407;
  744.     deviceCantMeetRequest        = -9408;
  745.     badControllerHeight            = -9994;
  746.     editingNotAllowed            = -9995;
  747.     controllerBoundsNotExact    = -9996;
  748.     cannotSetWidthOfAttachedController = -9997;
  749.     controllerHasFixedHeight    = -9998;
  750.     cannotMoveAttachedController = -9999;
  751.  
  752. {  AERegistry Errors  }
  753.     errAEBadKeyForm                = -10002;
  754.     errAECantHandleClass        = -10010;
  755.     errAECantSupplyType            = -10009;
  756.     errAECantUndo                = -10015;
  757.     errAEEventFailed            = -10000;
  758.     errAEIndexTooLarge            = -10007;
  759.     errAEInTransaction            = -10011;
  760.     errAELocalOnly                = -10016;
  761.     errAENoSuchTransaction        = -10012;
  762.     errAENotAnElement            = -10008;
  763.     errAENotASingleObject        = -10014;
  764.     errAENotModifiable            = -10003;
  765.     errAENoUserSelection        = -10013;
  766.     errAEPrivilegeError            = -10004;
  767.     errAEReadDenied                = -10005;
  768.     errAETypeError                = -10001;
  769.     errAEWriteDenied            = -10006;
  770.  
  771. {  TELErr  }
  772.     telGenericError                = -1;
  773.     telNoErr                    = 0;
  774.     telNoTools                    = 8;                            {  no telephone tools found in extension folder  }
  775.     telBadTermErr                = -10001;                        {  invalid TELHandle or handle not found }
  776.     telBadDNErr                    = -10002;                        {  TELDNHandle not found or invalid  }
  777.     telBadCAErr                    = -10003;                        {  TELCAHandle not found or invalid  }
  778.     telBadHandErr                = -10004;                        {  bad handle specified  }
  779.     telBadProcErr                = -10005;                        {  bad msgProc specified  }
  780.     telCAUnavail                = -10006;                        {  a CA is not available  }
  781.     telNoMemErr                    = -10007;                        {  no memory to allocate handle  }
  782.     telNoOpenErr                = -10008;                        {  unable to open terminal  }
  783.     telBadHTypeErr                = -10010;                        {  bad hook type specified  }
  784.     telHTypeNotSupp                = -10011;                        {  hook type not supported by this tool  }
  785.     telBadLevelErr                = -10012;                        {  bad volume level setting  }
  786.     telBadVTypeErr                = -10013;                        {  bad volume type error  }
  787.     telVTypeNotSupp                = -10014;                        {  volume type not supported by this tool }
  788.     telBadAPattErr                = -10015;                        {  bad alerting pattern specified  }
  789.     telAPattNotSupp                = -10016;                        {  alerting pattern not supported by tool }
  790.     telBadIndex                    = -10017;                        {  bad index specified  }
  791.     telIndexNotSupp                = -10018;                        {  index not supported by this tool  }
  792.     telBadStateErr                = -10019;                        {  bad device state specified  }
  793.     telStateNotSupp                = -10020;                        {  device state not supported by tool  }
  794.     telBadIntExt                = -10021;                        {  bad internal external error  }
  795.     telIntExtNotSupp            = -10022;                        {  internal external type not supported by this tool  }
  796.     telBadDNDType                = -10023;                        {  bad DND type specified  }
  797.     telDNDTypeNotSupp            = -10024;                        {  DND type is not supported by this tool  }
  798.     telFeatNotSub                = -10030;                        {  feature not subscribed  }
  799.     telFeatNotAvail                = -10031;                        {  feature subscribed but not available  }
  800.     telFeatActive                = -10032;                        {  feature already active  }
  801.     telFeatNotSupp                = -10033;                        {  feature program call not supported by this tool  }
  802.     telConfLimitErr                = -10040;                        {  limit specified is too high for this configuration  }
  803.     telConfNoLimit                = -10041;                        {  no limit was specified but required }
  804.     telConfErr                    = -10042;                        {  conference was not prepared  }
  805.     telConfRej                    = -10043;                        {  conference request was rejected  }
  806.     telTransferErr                = -10044;                        {  transfer not prepared  }
  807.     telTransferRej                = -10045;                        {  transfer request rejected  }
  808.     telCBErr                    = -10046;                        {  call back feature not set previously  }
  809.     telConfLimitExceeded        = -10047;                        {  attempt to exceed switch conference limits  }
  810.     telBadDNType                = -10050;                        {  DN type invalid  }
  811.     telBadPageID                = -10051;                        {  bad page ID specified }
  812.     telBadIntercomID            = -10052;                        {  bad intercom ID specified  }
  813.     telBadFeatureID                = -10053;                        {  bad feature ID specified  }
  814.     telBadFwdType                = -10054;                        {  bad fwdType specified  }
  815.     telBadPickupGroupID            = -10055;                        {  bad pickup group ID specified  }
  816.     telBadParkID                = -10056;                        {  bad park id specified  }
  817.     telBadSelect                = -10057;                        {  unable to select or deselect DN  }
  818.     telBadBearerType            = -10058;                        {  bad bearerType specified  }
  819.     telBadRate                    = -10059;                        {  bad rate specified  }
  820.     telDNTypeNotSupp            = -10060;                        {  DN type not supported by tool  }
  821.     telFwdTypeNotSupp            = -10061;                        {  forward type not supported by tool  }
  822.     telBadDisplayMode            = -10062;                        {  bad display mode specified  }
  823.     telDisplayModeNotSupp        = -10063;                        {  display mode not supported by tool  }
  824.     telNoCallbackRef            = -10064;                        {  no call back reference was specified, but is required  }
  825.     telAlreadyOpen                = -10070;                        {  terminal already open  }
  826.     telStillNeeded                = -10071;                        {  terminal driver still needed by someone else  }
  827.     telTermNotOpen                = -10072;                        {  terminal not opened via TELOpenTerm  }
  828.     telCANotAcceptable            = -10080;                        {  CA not "acceptable"  }
  829.     telCANotRejectable            = -10081;                        {  CA not "rejectable"  }
  830.     telCANotDeflectable            = -10082;                        {  CA not "deflectable"  }
  831.     telPBErr                    = -10090;                        {  parameter block error, bad format  }
  832.     telBadFunction                = -10091;                        {  bad msgCode specified  }
  833.                                                                 {     telNoTools            = -10101,           unable to find any telephone tools  }
  834.     telNoSuchTool                = -10102;                        {  unable to find tool with name specified  }
  835.     telUnknownErr                = -10103;                        {  unable to set config  }
  836.     telNoCommFolder                = -10106;                        {  Communications/Extensions [f] not found  }
  837.     telInitFailed                = -10107;                        {  initialization failed  }
  838.     telBadCodeResource            = -10108;                        {  code resource not found  }
  839.     telDeviceNotFound            = -10109;                        {  device not found  }
  840.     telBadProcID                = -10110;                        {  invalid procID  }
  841.     telValidateFailed            = -10111;                        {  telValidate failed  }
  842.     telAutoAnsNotOn                = -10112;                        {  autoAnswer in not turned on  }
  843.     telDetAlreadyOn                = -10113;                        {  detection is already turned on  }
  844.     telBadSWErr                    = -10114;                        {  Software not installed properly  }
  845.     telBadSampleRate            = -10115;                        {  incompatible sample rate  }
  846.     telNotEnoughdspBW            = -10116;                        {  not enough real-time for allocation  }
  847.  
  848. {  MP (multiprocessor API) error codes }
  849.     kMPDeletedErr                = -29295;
  850.     kMPTimeoutErr                = -29296;
  851.     kMPTaskAbortedErr            = -29297;
  852.     kMPInsufficientResourcesErr    = -29298;
  853.     kMPInvalidIDErr                = -29299;
  854.  
  855. {  StringCompare error codes (in TextUtils range) }
  856.     kCollateAttributesNotFoundErr = -29500;
  857.     kCollateInvalidOptions        = -29501;
  858.     kCollateMissingUnicodeTableErr = -29502;
  859.     kCollateUnicodeConvertFailedErr = -29503;
  860.     kCollatePatternNotFoundErr    = -29504;
  861.     kCollateInvalidChar            = -29505;
  862.     kCollateBufferTooSmall        = -29506;
  863.     kCollateInvalidCollationRef    = -29507;
  864.  
  865. {  TextObjects error codes }
  866.     textObjInvalidIndexErr        = -29580;
  867.     textObjBufferTooSmallErr    = -29581;
  868.     textObjObjectTooSmallErr    = -29582;
  869.     textObjTextConversionFailedErr = -29583;
  870.     textObjMalformedObjectErr    = -29584;
  871.     textObjAnnotationNotFoundErr = -29585;
  872.     textObjMoreAnnotationsErr    = -29586;
  873.     textObjLanguageChangedErr    = -29587;
  874.     textObjFontNotFoundErr        = -29599;
  875.  
  876. {  Locale Object Mgr errors }
  877.     localeNotFoundErr            = -30001;
  878.     localeObjectAttributeNotAvailErr = -30002;
  879.     localeObjectNoNamesTableErr    = -30005;
  880.     localeBadReferenceErr        = -30006;
  881.     localeObjectNotFoundErr        = -30007;
  882.     localeObjectInvalidReferenceErr = -30008;
  883.     localeObjectItemFoundIsLastErr = -30009;
  884.     localeObjectNameAttributeConflictErr = -30010;
  885.     localeObjectInvalidIteratorErr = -30020;
  886.     localeObjectNoNameErr        = -30021;
  887.     localeObjectTagDataNotFoundErr = -30022;
  888.     localeObjectCannotDeleteSystemObjectErr = -30023;
  889.     localeCouldNotWriteLinkedObjectsErr = -30024;
  890.     localeDuplicateErr            = -30025;
  891.     localeObjectDefaultValueNotAvailableErr = -30026;
  892.     localeNoAssociatedDataTagsErr = -30027;
  893.  
  894.     badComponentInstance        = $80008001;
  895.     badComponentSelector        = $80008002;
  896.  
  897. { Translation manager & Translation components }
  898.     invalidTranslationPathErr    = -3025;                        { Source type to destination type not a valid path }
  899.     couldNotParseSourceFileErr    = -3026;                        { Source document does not contain source type }
  900.     noTranslationPathErr        = -3030;
  901.     badTranslationSpecErr        = -3031;
  902.     noPrefAppErr                = -3032;
  903.  
  904.     buf2SmallErr                = -3101;
  905.     noMPPErr                    = -3102;
  906.     ckSumErr                    = -3103;
  907.     extractErr                    = -3104;
  908.     readQErr                    = -3105;
  909.     atpLenErr                    = -3106;
  910.     atpBadRsp                    = -3107;
  911.     recNotFnd                    = -3108;
  912.     sktClosedErr                = -3109;
  913.     afpAccessDenied                = -5000;
  914.     afpAuthContinue                = -5001;
  915.     afpBadUAM                    = -5002;
  916.     afpBadVersNum                = -5003;
  917.     afpBitmapErr                = -5004;
  918.     afpCantMove                    = -5005;
  919.     afpDenyConflict                = -5006;
  920.     afpDirNotEmpty                = -5007;
  921.     afpDiskFull                    = -5008;
  922.     afpEofError                    = -5009;
  923.     afpFileBusy                    = -5010;
  924.     afpFlatVol                    = -5011;
  925.     afpItemNotFound                = -5012;
  926.     afpLockErr                    = -5013;
  927.     afpMiscErr                    = -5014;
  928.     afpNoMoreLocks                = -5015;
  929.  
  930.     afpNoServer                    = -5016;
  931.     afpObjectExists                = -5017;
  932.     afpObjectNotFound            = -5018;
  933.     afpParmErr                    = -5019;
  934.     afpRangeNotLocked            = -5020;
  935.     afpRangeOverlap                = -5021;
  936.     afpSessClosed                = -5022;
  937.     afpUserNotAuth                = -5023;
  938.     afpCallNotSupported            = -5024;
  939.     afpObjectTypeErr            = -5025;
  940.     afpTooManyFilesOpen            = -5026;
  941.     afpServerGoingDown            = -5027;
  942.     afpCantRename                = -5028;
  943.     afpDirNotFound                = -5029;
  944.     afpIconTypeError            = -5030;
  945.     afpVolLocked                = -5031;                        { Volume is Read-Only }
  946.     afpObjectLocked                = -5032;                        { Object is M/R/D/W inhibited }
  947.     afpContainsSharedErr        = -5033;                        { the folder being shared contains a shared folder }
  948.     afpIDNotFound                = -5034;
  949.     afpIDExists                    = -5035;
  950.  
  951.     afpDiffVolErr                = -5036;
  952.     afpCatalogChanged            = -5037;
  953.     afpSameObjectErr            = -5038;
  954.     afpBadIDErr                    = -5039;
  955.     afpPwdSameErr                = -5040;                        { someone tried to change their password to the same password on a mantadory password change }
  956.     afpPwdTooShortErr            = -5041;                        { the password being set is too short: there is a minimum length that must be met or exceeded }
  957.     afpPwdExpiredErr            = -5042;                        { the password being used is too old: this requires the user to change the password before log-in can continue }
  958.     afpInsideSharedErr            = -5043;                        { the folder being shared is inside a shared folder OR the folder contains a shared folder and is being moved into a shared folder  }
  959.                                                                 {   OR the folder contains a shared folder and is being moved into the descendent of a shared folder. }
  960.     afpInsideTrashErr            = -5044;                        { the folder being shared is inside the trash folder  }
  961.                                                                 {   OR the shared folder is being moved into the trash folder OR the folder is being moved to the trash and it contains a shared folder  }
  962.     afpBadDirIDType                = -5060;
  963.     afpCantMountMoreSrvre        = -5061;
  964.     afpAlreadyMounted            = -5062;
  965.     afpSameNodeErr                = -5063;                        { Display Manager error codes (-6220...-6269) }
  966.     kDMGenErr                    = -6220;                        { Unexpected Error }
  967.                                                                 {  Mirroring-Specific Errors  }
  968.     kDMMirroringOnAlready        = -6221;                        { Returned by all calls that need mirroring to be off to do their thing. }
  969.     kDMWrongNumberOfDisplays    = -6222;                        { Can only handle 2 displays for now. }
  970.     kDMMirroringBlocked            = -6223;                        { DMBlockMirroring() has been called. }
  971.     kDMCantBlock                = -6224;                        { Mirroring is already on, can't Block now (call DMUnMirror() first). }
  972.     kDMMirroringNotOn            = -6225;                        { Returned by all calls that need mirroring to be on to do their thing. }
  973.                                                                 {  Other Display Manager Errors  }
  974.     kSysSWTooOld                = -6226;                        { Missing critical pieces of System Software. }
  975.     kDMSWNotInitializedErr        = -6227;                        { Required software not initialized (eg windowmanager or display mgr). }
  976.     kDMDriverNotDisplayMgrAwareErr = -6228;                        { Video Driver does not support display manager. }
  977.     kDMDisplayNotFoundErr        = -6229;                        { Could not find item (will someday remove). }
  978.     kDMNotFoundErr                = -6229;                        { Could not find item. }
  979.     kDMDisplayAlreadyInstalledErr = -6230;                        { Attempt to add an already installed display. }
  980.     kDMMainDisplayCannotMoveErr    = -6231;                        { Trying to move main display (or a display mirrored to it)  }
  981.     kDMNoDeviceTableclothErr    = -6231;                        { obsolete }
  982.                                                                 { Gestalt error codes }
  983.     gestaltUnknownErr            = -5550;                        { value returned if Gestalt doesn't know the answer }
  984.     gestaltUndefSelectorErr        = -5551;                        { undefined selector was passed to Gestalt }
  985.     gestaltDupSelectorErr        = -5552;                        { tried to add an entry that already existed }
  986.     gestaltLocationErr            = -5553;                        { gestalt function ptr wasn't in sysheap }
  987.                                                                 { PPC errors }
  988.     notInitErr                    = -900;                            { PPCToolBox not initialized }
  989.     nameTypeErr                    = -902;                            { Invalid or inappropriate locationKindSelector in locationName }
  990.     noPortErr                    = -903;                            { Unable to open port or bad portRefNum }
  991.     noGlobalsErr                = -904;                            { The system is hosed, better re-boot }
  992.     localOnlyErr                = -905;                            { Network activity is currently disabled }
  993.     destPortErr                    = -906;                            { Port does not exist at destination }
  994.     sessTableErr                = -907;                            { Out of session tables, try again later }
  995.     noSessionErr                = -908;                            { Invalid session reference number }
  996.     badReqErr                    = -909;                            { bad parameter or invalid state for operation }
  997.     portNameExistsErr            = -910;                            { port is already open (perhaps in another app) }
  998.     noUserNameErr                = -911;                            { user name unknown on destination machine }
  999.  
  1000.     userRejectErr                = -912;                            { Destination rejected the session request }
  1001.     noMachineNameErr            = -913;                            { user hasn't named his Macintosh in the Network Setup Control Panel }
  1002.     noToolboxNameErr            = -914;                            { A system resource is missing, not too likely }
  1003.     noResponseErr                = -915;                            { unable to contact destination }
  1004.     portClosedErr                = -916;                            { port was closed }
  1005.     sessClosedErr                = -917;                            { session was closed }
  1006.     badPortNameErr                = -919;                            { PPCPortRec malformed }
  1007.     noDefaultUserErr            = -922;                            { user hasn't typed in owners name in Network Setup Control Pannel }
  1008.     notLoggedInErr                = -923;                            { The default userRefNum does not yet exist }
  1009.     noUserRefErr                = -924;                            { unable to create a new userRefNum }
  1010.     networkErr                    = -925;                            { An error has occured in the network, not too likely }
  1011.     noInformErr                    = -926;                            { PPCStart failed because destination did not have inform pending }
  1012.     authFailErr                    = -927;                            { unable to authenticate user at destination }
  1013.     noUserRecErr                = -928;                            { Invalid user reference number }
  1014.     badServiceMethodErr            = -930;                            { illegal service type, or not supported }
  1015.     badLocNameErr                = -931;                            { location name malformed }
  1016.     guestNotAllowedErr            = -932;                            { destination port requires authentication }
  1017.     noMaskFoundErr                = -1000;                        { Icon Utilties Error }
  1018.  
  1019.     dsBusError                    = 1;                            { bus error }
  1020.     dsAddressErr                = 2;                            { address error }
  1021.     dsIllInstErr                = 3;                            { illegal instruction error }
  1022.     dsZeroDivErr                = 4;                            { zero divide error }
  1023.     dsChkErr                    = 5;                            { check trap error }
  1024.     dsOvflowErr                    = 6;                            { overflow trap error }
  1025.     dsPrivErr                    = 7;                            { privilege violation error }
  1026.     dsTraceErr                    = 8;                            { trace mode error }
  1027.     dsLineAErr                    = 9;                            { line 1010 trap error }
  1028.     dsLineFErr                    = 10;                            { line 1111 trap error }
  1029.     dsMiscErr                    = 11;                            { miscellaneous hardware exception error }
  1030.     dsCoreErr                    = 12;                            { unimplemented core routine error }
  1031.     dsIrqErr                    = 13;                            { uninstalled interrupt error }
  1032.     dsIOCoreErr                    = 14;                            { IO Core Error }
  1033.     dsLoadErr                    = 15;                            { Segment Loader Error }
  1034.     dsFPErr                        = 16;                            { Floating point error }
  1035.     dsNoPackErr                    = 17;                            { package 0 not present }
  1036.     dsNoPk1                        = 18;                            { package 1 not present }
  1037.     dsNoPk2                        = 19;                            { package 2 not present }
  1038.  
  1039.     dsNoPk3                        = 20;                            { package 3 not present }
  1040.     dsNoPk4                        = 21;                            { package 4 not present }
  1041.     dsNoPk5                        = 22;                            { package 5 not present }
  1042.     dsNoPk6                        = 23;                            { package 6 not present }
  1043.     dsNoPk7                        = 24;                            { package 7 not present }
  1044.     dsMemFullErr                = 25;                            { out of memory! }
  1045.     dsBadLaunch                    = 26;                            { can't launch file }
  1046.     dsFSErr                        = 27;                            { file system map has been trashed }
  1047.     dsStknHeap                    = 28;                            { stack has moved into application heap }
  1048.     negZcbFreeErr                = 33;                            { ZcbFree has gone negative }
  1049.     dsFinderErr                    = 41;                            { can't load the Finder error }
  1050.     dsBadSlotInt                = 51;                            { unserviceable slot interrupt }
  1051.     dsBadSANEOpcode                = 81;                            { bad opcode given to SANE Pack4 }
  1052.     dsBadPatchHeader            = 83;                            { SetTrapAddress saw the ``come-from'' header }
  1053.     menuPrgErr                    = 84;                            { happens when a menu is purged }
  1054.     dsMBarNFnd                    = 85;                            { Menu Manager Errors }
  1055.     dsHMenuFindErr                = 86;                            { Menu Manager Errors }
  1056.     dsWDEFNotFound                = 87;                            { could not load WDEF }
  1057.     dsCDEFNotFound                = 88;                            { could not load CDEF }
  1058.     dsMDEFNotFound                = 89;                            { could not load MDEF }
  1059.  
  1060.     dsNoFPU                        = 90;                            { an FPU instruction was executed and the machine doesn't have one }
  1061.     dsNoPatch                    = 98;                            { Can't patch for particular Model Mac }
  1062.     dsBadPatch                    = 99;                            { Can't load patch resource }
  1063.     dsParityErr                    = 101;                            { memory parity error }
  1064.     dsOldSystem                    = 102;                            { System is too old for this ROM }
  1065.     ds32BitMode                    = 103;                            { booting in 32-bit on a 24-bit sys }
  1066.     dsNeedToWriteBootBlocks        = 104;                            { need to write new boot blocks }
  1067.     dsNotEnoughRAMToBoot        = 105;                            { must have at least 1.5MB of RAM to boot 7.0 }
  1068.     dsBufPtrTooLow                = 106;                            { bufPtr moved too far during boot }
  1069.     dsReinsert                    = 30;                            { request user to reinsert off-line volume }
  1070.     shutDownAlert                = 42;                            { handled like a shutdown error }
  1071.     dsShutDownOrRestart            = 20000;                        { user choice between ShutDown and Restart }
  1072.     dsSwitchOffOrRestart        = 20001;                        { user choice between switching off and Restart }
  1073.     dsForcedQuit                = 20002;                        { allow the user to ExitToShell, return if Cancel }
  1074.     dsRemoveDisk                = 20003;                        { request user to remove disk from manual eject drive }
  1075.     dsDirtyDisk                    = 20004;                        { request user to return a manually-ejected dirty disk }
  1076.     dsShutDownOrResume            = 20109;                        { allow user to return to Finder or ShutDown }
  1077.     dsSCSIWarn                    = 20010;                        { Portable SCSI adapter warning. }
  1078.  
  1079. {
  1080.     System Errors that are used after MacsBug is loaded to put up dialogs since these should not 
  1081.     cause MacsBug to stop, they must be in the range (30, 42, 16384-32767) negative numbers add 
  1082.     to an existing dialog without putting up a whole new dialog 
  1083. }
  1084.     dsMacsBugInstalled            = -10;                            { say ``MacsBug Installed'' }
  1085.     dsDisassemblerInstalled        = -11;                            { say ``Disassembler Installed'' }
  1086.     dsExtensionsDisabled        = -13;                            { say ``Extensions Disabled'' }
  1087.     dsGreeting                    = 40;                            { welcome to Macintosh greeting }
  1088.     dsSysErr                    = 32767;                        { general system error }
  1089.                                                                 { old names here for compatibility's sake }
  1090.     WDEFNFnd                    = 87;
  1091.  
  1092.     CDEFNFnd                    = 88;
  1093.     dsNotThe1                    = 31;                            { not the disk I wanted }
  1094.     dsBadStartupDisk            = 42;                            { unable to mount boot volume (sad Mac only) }
  1095.     dsSystemFileErr                = 43;                            { can't find System file to open (sad Mac only) }
  1096.     dsHD20Installed                = -12;                            { say ``HD20 Startup'' }
  1097.     mBarNFnd                    = -126;                            { system error code for MBDF not found }
  1098.     hMenuFindErr                = -127;                            { could not find HMenu's parent in MenuKey }
  1099.     userBreak                    = -490;                            { user debugger break }
  1100.     strUserBreak                = -491;                            { user debugger break; display string on stack }
  1101.     exUserBreak                    = -492;                            { user debugger break; execute debugger commands on stack }
  1102.  
  1103. {   Kernel Error Codes   }
  1104.     kernelIncompleteErr            = -2401;
  1105.     kernelCanceledErr            = -2402;
  1106.     kernelOptionsErr            = -2403;
  1107.     kernelPrivilegeErr            = -2404;
  1108.     kernelUnsupportedErr        = -2405;
  1109.     kernelObjectExistsErr        = -2406;
  1110.     kernelWritePermissionErr    = -2407;
  1111.     kernelReadPermissionErr        = -2408;
  1112.     kernelExecutePermissionErr    = -2409;
  1113.     kernelDeletePermissionErr    = -2410;
  1114.     kernelExecutionLevelErr        = -2411;
  1115.     kernelAttributeErr            = -2412;
  1116.     kernelAsyncSendLimitErr        = -2413;
  1117.     kernelAsyncReceiveLimitErr    = -2414;
  1118.     kernelTimeoutErr            = -2415;
  1119.     kernelInUseErr                = -2416;
  1120.     kernelTerminatedErr            = -2417;
  1121.     kernelExceptionErr            = -2418;
  1122.     kernelIDErr                    = -2419;
  1123.     kernelAlreadyFreeErr        = -2421;
  1124.     kernelReturnValueErr        = -2422;
  1125.     kernelUnrecoverableErr        = -2499;
  1126.  
  1127. {
  1128.  The System 8 form of CFM errors.
  1129.  The preferred spelling for Code Fragment Manager errors:
  1130. }
  1131.     cfragFirstErrCode            = -2800;                        {  The first value in the range of CFM errors. }
  1132.     cfragContextIDErr            = -2800;                        {  The context ID was not valid. }
  1133.     cfragConnectionIDErr        = -2801;                        {  The connection ID was not valid. }
  1134.     cfragNoSymbolErr            = -2802;                        {  The specified symbol was not found. }
  1135.     cfragNoSectionErr            = -2803;                        {  The specified section was not found. }
  1136.     cfragNoLibraryErr            = -2804;                        {  The named library was not found. }
  1137.     cfragDupRegistrationErr        = -2805;                        {  The registration name was already in use. }
  1138.     cfragFragmentFormatErr        = -2806;                        {  A fragment's container format is unknown. }
  1139.     cfragUnresolvedErr            = -2807;                        {  A fragment had "hard" unresolved imports. }
  1140.     cfragNoPositionErr            = -2808;                        {  The registration insertion point was not found. }
  1141.     cfragNoPrivateMemErr        = -2809;                        {  Out of memory for internal bookkeeping. }
  1142.     cfragNoClientMemErr            = -2810;                        {  Out of memory for fragment mapping or section instances. }
  1143.     cfragNoIDsErr                = -2811;                        {  No more CFM IDs for contexts, connections, etc. }
  1144.     cfragInitOrderErr            = -2812;                        {   }
  1145.     cfragImportTooOldErr        = -2813;                        {  An import library was too old for a client. }
  1146.     cfragImportTooNewErr        = -2814;                        {  An import library was too new for a client. }
  1147.     cfragInitLoopErr            = -2815;                        {  Circularity in required initialization order. }
  1148.     cfragInitAtBootErr            = -2816;                        {  A boot library has an initialization function.  (System 7 only) }
  1149.     cfragLibConnErr                = -2817;                        {   }
  1150.     cfragCFMStartupErr            = -2818;                        {  Internal error during CFM initialization. }
  1151.     cfragCFMInternalErr            = -2819;                        {  An internal inconstistancy has been detected. }
  1152.     cfragFragmentCorruptErr        = -2820;                        {  A fragment's container was corrupt (known format). }
  1153.     cfragInitFunctionErr        = -2821;                        {  A fragment's initialization routine returned an error. }
  1154.     cfragNoApplicationErr        = -2822;                        {  No application member found in the cfrg resource. }
  1155.     cfragArchitectureErr        = -2823;                        {  A fragment has an unacceptable architecture. }
  1156.     cfragFragmentUsageErr        = -2824;                        {  A semantic error in usage of the fragment. }
  1157.     cfragFileSizeErr            = -2825;                        {  A file was too large to be mapped. }
  1158.     cfragNotClosureErr            = -2826;                        {  The closure ID was actually a connection ID. }
  1159.     cfragNoRegistrationErr        = -2827;                        {  The registration name was not found. }
  1160.     cfragContainerIDErr            = -2828;                        {  The fragment container ID was not valid. }
  1161.     cfragClosureIDErr            = -2829;                        {  The closure ID was not valid. }
  1162.     cfragAbortClosureErr        = -2830;                        {  Used by notification handlers to abort a closure. }
  1163.  
  1164.     cfragLastErrCode            = -2899;                        {  The last value in the range of CFM errors. }
  1165.  
  1166. {$IFC OLDROUTINENAMES }
  1167. {  The old spelling for Code Fragment Manager errors, kept for compatibility: }
  1168.     fragContextNotFound            = -2800;
  1169.     fragConnectionIDNotFound    = -2801;
  1170.     fragSymbolNotFound            = -2802;
  1171.     fragSectionNotFound            = -2803;
  1172.     fragLibNotFound                = -2804;
  1173.     fragDupRegLibName            = -2805;
  1174.     fragFormatUnknown            = -2806;
  1175.     fragHadUnresolveds            = -2807;
  1176.     fragNoMem                    = -2809;
  1177.     fragNoAddrSpace                = -2810;
  1178.     fragNoContextIDs            = -2811;
  1179.     fragObjectInitSeqErr        = -2812;
  1180.     fragImportTooOld            = -2813;
  1181.     fragImportTooNew            = -2814;
  1182.     fragInitLoop                = -2815;
  1183.     fragInitRtnUsageErr            = -2816;
  1184.     fragLibConnErr                = -2817;
  1185.     fragMgrInitErr                = -2818;
  1186.     fragConstErr                = -2819;
  1187.     fragCorruptErr                = -2820;
  1188.     fragUserInitProcErr            = -2821;
  1189.     fragAppNotFound                = -2822;
  1190.     fragArchError                = -2823;
  1191.     fragInvalidFragmentUsage    = -2824;
  1192.     fragLastErrCode                = -2899;
  1193.  
  1194. {$ENDC}
  1195. {  System Notification Service error codes  }
  1196.     snsNoSuchTypeErr            = -9000;
  1197.     snsNoSuchSubscriptionErr    = -9001;
  1198.     snsNoSuchKindErr            = -9002;
  1199.     snsDistributorGoneErr        = -9003;
  1200.     snsQueueEmptyErr            = -9004;
  1201.     snsNoRequestsPendingErr        = -9005;
  1202.     snsDuplicateSubscriptionErr    = -9006;
  1203.     snsDuplicateDistributorErr    = -9007;
  1204.     snsNoSuchDistributorErr        = -9008;
  1205.     snsSubjectToLargeErr        = -9009;
  1206.     snsBufferTooSmallErr        = -9010;
  1207.     snsConsumerQueueOverrunErr    = -9011;
  1208.     snsReliabilityFailureErr    = -9012;
  1209.     snsAlreadyUnheldErr            = -9013;
  1210.  
  1211.                                                                 {  Drag Manager error codes  }
  1212.     badDragRefErr                = -1850;                        {  unknown drag reference  }
  1213.     badDragItemErr                = -1851;                        {  unknown drag item reference  }
  1214.     badDragFlavorErr            = -1852;                        {  unknown flavor type  }
  1215.     duplicateFlavorErr            = -1853;                        {  flavor type already exists  }
  1216.     cantGetFlavorErr            = -1854;                        {  error while trying to get flavor data  }
  1217.     duplicateHandlerErr            = -1855;                        {  handler already exists  }
  1218.     handlerNotFoundErr            = -1856;                        {  handler not found  }
  1219.     dragNotAcceptedErr            = -1857;                        {  drag was not accepted by receiver  }
  1220.  
  1221.                                                                 {  Mixed Mode error codes  }
  1222.     mmInternalError                = -2526;
  1223.  
  1224.                                                                 {  error codes  }
  1225.     tsmComponentNoErr            = 0;                            {  component result = no error  }
  1226.     tsmUnsupScriptLanguageErr    = -2500;
  1227.     tsmInputMethodNotFoundErr    = -2501;
  1228.     tsmNotAnAppErr                = -2502;                        {  not an application error  }
  1229.     tsmAlreadyRegisteredErr        = -2503;                        {  want to register again error  }
  1230.     tsmNeverRegisteredErr        = -2504;                        {  app never registered error (not TSM aware)  }
  1231.     tsmInvalidDocIDErr            = -2505;                        {  invalid TSM documentation id  }
  1232.     tsmTSMDocBusyErr            = -2506;                        {  document is still active  }
  1233.     tsmDocNotActiveErr            = -2507;                        {  document is NOT active  }
  1234.     tsmNoOpenTSErr                = -2508;                        {  no open text service  }
  1235.     tsmCantOpenComponentErr        = -2509;                        {  can't open the component  }
  1236.     tsmTextServiceNotFoundErr    = -2510;                        {  no text service found  }
  1237.     tsmDocumentOpenErr            = -2511;                        {  there are open documents  }
  1238.     tsmUseInputWindowErr        = -2512;                        {  not TSM aware because we are using input window  }
  1239.     tsmTSHasNoMenuErr            = -2513;                        {  the text service has no menu  }
  1240.     tsmTSNotOpenErr                = -2514;                        {  text service is not open  }
  1241.     tsmComponentAlreadyOpenErr    = -2515;                        {  text service already opened for the document  }
  1242.     tsmInputMethodIsOldErr        = -2516;                        {  returned by GetDefaultInputMethod  }
  1243.     tsmScriptHasNoIMErr            = -2517;                        {  script has no imput method or is using old IM  }
  1244.     tsmUnsupportedTypeErr        = -2518;                        {  unSupported interface type error  }
  1245.     tsmUnknownErr                = -2519;                        {  any other errors  }
  1246.     tsmInvalidContext            = -2520;                        {  Invalid TSMContext specified in call  }
  1247.     tsmNoHandler                = -2521;                        {  No Callback Handler exists for callback  }
  1248.     tsmNoMoreTokens                = -2522;                        {  No more tokens are available for the source text  }
  1249.     tsmNoStem                    = -2523;                        {  No stem exists for the token  }
  1250.  
  1251. {  AppleEvent error definitions  }
  1252.     errOffsetInvalid            = -1800;
  1253.     errOffsetIsOutsideOfView    = -1801;
  1254.     errTopOfDocument            = -1810;
  1255.     errTopOfBody                = -1811;
  1256.     errEndOfDocument            = -1812;
  1257.     errEndOfBody                = -1813;
  1258.  
  1259.                                                                 {  Database access error codes  }
  1260.     rcDBNull                    = -800;
  1261.     rcDBValue                    = -801;
  1262.     rcDBError                    = -802;
  1263.     rcDBBadType                    = -803;
  1264.     rcDBBreak                    = -804;
  1265.     rcDBExec                    = -805;
  1266.     rcDBBadSessID                = -806;
  1267.     rcDBBadSessNum                = -807;                            {  bad session number for DBGetConnInfo  }
  1268.     rcDBBadDDEV                    = -808;                            {  bad ddev specified on DBInit  }
  1269.     rcDBAsyncNotSupp            = -809;                            {  ddev does not support async calls  }
  1270.     rcDBBadAsyncPB                = -810;                            {  tried to kill a bad pb  }
  1271.     rcDBNoHandler                = -811;                            {  no app handler for specified data type  }
  1272.     rcDBWrongVersion            = -812;                            {  incompatible versions  }
  1273.     rcDBPackNotInited            = -813;                            {  attempt to call other routine before InitDBPack  }
  1274.  
  1275.                                                                 {  ENET error codes  }
  1276.     eLenErr                        = -92;                            { Length error ddpLenErr }
  1277.     eMultiErr                    = -91;                            { Multicast address error ddpSktErr }
  1278.  
  1279.                                                                 {  DS Errors which are specific to the new runtime model introduced with PowerPC  }
  1280.     dsBadLibrary                = 1010;                            {  Bad shared library  }
  1281.     dsMixedModeFailure            = 1011;                            {  Internal Mixed Mode Failure  }
  1282.  
  1283. {  System Logging Service  }
  1284.     logNoConnectionErr            = -29880;
  1285.     logDataTooLargeErr            = -29881;
  1286.     logInvalidVersionErr        = -29882;
  1287.     logNoSuchActionErr            = -29883;
  1288.     logServiceInUseErr            = -29884;
  1289.     logNoMoreEntriesErr            = -29885;
  1290.     logQueueFullErr                = -29886;
  1291.     logServiceNotInUseErr        = -29887;
  1292.     logIteratorInUseErr            = -29888;
  1293.     logNotATextEntryErr            = -29889;
  1294.     logNoDataAvailableErr        = -29890;
  1295.     logInvalidSizeErr            = -29891;
  1296.     logPluginNotPresentErr        = -29892;
  1297.     logWrongTypeErr                = -29893;
  1298.     logEntryCorruptErr            = -29894;
  1299.     logCannotCreateActionErr    = -29895;
  1300.     logIteratorInvalidErr        = -29896;
  1301.     logInvalidSituationTypeErr    = -29897;
  1302.     logCorruptStoreErr            = -29898;
  1303.  
  1304. {$IFC FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED }
  1305. PROCEDURE SysError(errorCode: INTEGER);
  1306.     {$IFC NOT GENERATINGCFM}
  1307.     INLINE $301F, $A9C9;
  1308.     {$ENDC}
  1309. {$ENDC}
  1310. {$ALIGN RESET}
  1311. {$POP}
  1312.  
  1313. {$SETC UsingIncludes := ErrorsIncludes}
  1314.  
  1315. {$ENDC} {__ERRORS__}
  1316.  
  1317. {$IFC NOT UsingIncludes}
  1318.  END.
  1319. {$ENDC}
  1320.